home *** CD-ROM | disk | FTP | other *** search
/ IBM Aptiva Multimedia Exploration CD / Aptiva DEMO CD.iso / mmbasics / sysbook.sbk (.txt) < prev    next >
Asymetrix ToolBook File  |  1993-09-17  |  23KB  |  494 lines

  1. System Book
  2. System
  3. mes New Roman
  4. developer
  5. developer
  6. developer
  7. zarre
  8. developer
  9. buttonUp
  10. buttonUp
  11. -- ENTER BOOK SCRIPT
  12. 4gAnInch
  13.     -- Links 
  14. DLL's 
  15.     linkDLL "tbkwin.dll"
  16.         STRING ScreenFromPage(WORD,
  17. ,INT,
  18. %PageFromScreen(
  19. * VerticalDisplayRes()
  20. E HorizontalDisplayRes()
  21. OpenDlg(
  22. user"
  23.  MoveWindow(
  24.     -- setup 
  25. "System Book"
  26. k32767)
  27. -- SYSTEM HANDLERS (FORWARDED)
  28. 4gVideoFullScreen
  29. tbkMCI ("status theVideo mode","")
  30. "paused" 
  31. --            
  32. RestoreVideoButton
  33. --            
  34. PlayVideo
  35. 8"c:\toolbook\mmeld\main.
  36. x"developer" 
  37. CloseVideo
  38. SizeToPage
  39. "0,0"
  40. 4gVideoFile
  41. 4gVideoFromFrame, gVideoToFrame
  42. videoFile 
  43. startStop 
  44. ShowVideoButton
  45.  here"
  46. ttwo handlers belong 
  47. program 
  48. windowSized
  49. across 
  50. s() + 5
  51. high 
  52. ) + 5
  53. -3, -22, 
  54. windowMoved
  55. s() + 5
  56. ) + 5
  57. -3, -22, 
  58. -- SPECIAL AUTHORING 
  59. key, isShift, isCtrl
  60. "The 
  61. :" && 
  62. k& "What 
  63. title 
  64. Slocation, 
  65. 8"c:\
  66. .tbk" 
  67. "c:\plv","*.avs","Select a 
  68.  file...","
  69. ("Enter 
  70. stop frames (ex. 
  71. -- 1,900):" \
  72. "Error:
  73. You need 
  74. enter 2 
  75. ListObjects
  76.     --        
  77. EditObject 
  78.     --        
  79.     --        
  80.     --        
  81. TextEditor 
  82. zyou want 
  83. "Background" \
  84. theObjectEditor 
  85.     sourcePage 
  86.     sourceObject 
  87. sourceBook 
  88. theTextEditor 
  89.     tedit.
  90. SizeForVideo
  91. x1 + 4785
  92. y1 + 3585
  93. x1,y1,x2,y2
  94. FullScreenVideo
  95. -- LOW-LEVEL VIDEO 
  96. close 
  97. ","")
  98. PauseVideo
  99. wait","")
  100. OpenVideo
  101. , gVideoStyle
  102. kstoogeVideo","")
  103. "child"
  104. tbkMCIchk ("
  105. " && 
  106.  && "alias 
  107. " && 
  108. && "style 
  109. ,1,1)
  110. "popup"
  111. " && 
  112.  && "
  113. ,1,1)
  114. "overlapped"
  115. " && 
  116.  && "
  117. ,1,1)
  118. SizeWindow
  119. 4gVideoSize
  120. theVideoPosition 
  121. , sysMagnification, 
  122. (640 * 
  123. ) - 1
  124. (480 * 
  125. ) - 1
  126. x1 + (9570 * 
  127. y1 + (7170 * 
  128. x1,y1,x2,y2
  129. theVideoWindow 
  130. ","",1,1)
  131. " && 
  132. "",1,1)
  133. " && 
  134.  && "
  135. " && 
  136. ,"",1,1)
  137. HideVideo
  138. state 
  139. Audio
  140. 4gVideoAudio
  141. audio 
  142. on","",1,1)
  143. off","",1,1)
  144. VideoFrame
  145. ","")
  146. -- HIGH 
  147.         theOriginalPosition 
  148. 0,0,21000,21000
  149. ","",1,1)
  150. , 0, 0, 640, 480, 1)
  151. -- TO CREATE FIELDS FROM TEXT FILES (TEXTFIELDS)
  152. TextFields
  153. theOriginalSnap 
  154. & ".txt")
  155. theTextFile 
  156. 1\" & 
  157. ("Do 
  158. 6(1) 
  159. k(2) 
  160. x"1" 
  161. theColor 
  162. GetText(
  163.     -- loop through 
  164. each 
  165. fCount 
  166. PlaceField 
  167.     -- clean up 
  168.  theFile
  169. " && 
  170.         -- skip 
  171. )-1) 
  172. ) - 2) 
  173. theFieldNumber, theTextLine, theTextColor
  174.  * 4)
  175.  * 3 / 8)
  176. x1,y1 
  177. x2,y2
  178. "Arial"
  179. "240,25.125,100"
  180. -- PRODUCE PAGE/OBJECT LIST
  181. ListPages
  182. "c:\pagelist.
  183. theLastBackground 
  184. :" && 
  185. "M d, y"
  186. "Date:" && 
  187. , thePageNumber
  188. * Title: " & 
  189. ' & \
  190. : " && 
  191.             & 
  192. * Frames:" && 
  193.             & 
  194. theObjects 
  195. " (" & 
  196. & ")" & 
  197. -- THE THREE STOOGES
  198. PlayStooges stoogeNumber
  199. wave files 
  200. waveFile","")
  201. currently playing 
  202. previously opened 
  203. appropriate 
  204. theVideoFile 
  205. "c:\plv\stooge1.
  206. " && 
  207. ,1,1)
  208. full screen 
  209. ","",1,1)
  210. ,1,1,640,480,1)
  211. ,1,1)
  212. erPage
  213. SizeForVideo
  214. buttonUp
  215. author
  216. CloseVideo
  217. leavePage
  218. PauseVideo
  219. OpenVideo
  220. leaveBook
  221. SizeWindow
  222. reader
  223. PlayVideo
  224. keyDown
  225. HideVideo
  226. ShowVideo
  227. Audio
  228. rightButtonUp
  229. FullScreenVideo
  230. RestoreVideoButton
  231. ShowVideoButton
  232. enterBook
  233. TextFields
  234. PlaceField
  235. TextEditor
  236. ListPages
  237. ListObjects
  238. enterPage
  239. PlayStooges
  240. VideoFrame
  241. GetText
  242. enterBook
  243. tbkwin.dll
  244. ScreenFromPage
  245. PageFromScreen
  246. VerticalDisplayRes
  247. HorizontalDisplayRes
  248. tbkdlg.dll
  249. OpenDlg
  250.                     
  251. MoveWindow
  252. System Book
  253. sizeToPage
  254. seconds
  255. gAnInch
  256. author
  257. CloseVideo
  258. SizeToPage
  259. reader
  260. CloseVideo
  261. enterPage
  262. videoFile
  263. startStop
  264. ShowVideoButton
  265. gVideoFromFrame
  266. gVideoToFrame
  267. gVideoFile
  268. leavePage
  269. CloseVideo
  270. videoFile
  271. show video here
  272. leaveBook
  273. CloseVideo
  274. keyDown
  275. The name of this page is:
  276. What is the title of this page?
  277. title
  278. cancel
  279. title
  280. isCtrl
  281. isShift
  282. rightButtonUp
  283. c:\toolbook\mmeld\main.tbk
  284. developer
  285. CloseVideo
  286. show video here
  287. c:\plv
  288. *.avs
  289. Select a video file...
  290. OpenDlg
  291. videoFile
  292. Enter the start and stop frames (ex. start,stop -- 1,900):
  293. startStop
  294. cancel
  295. Error:  You need to enter 2 items!
  296. startStop
  297. field
  298. TextEditor
  299. hotword
  300. TextEditor
  301. paintObject
  302. What do you want to edit?
  303. Background
  304. Background
  305. isCtrl
  306. isShift
  307. location
  308. TextEditor
  309. c:\toolbook\mmeld\tedit.tbk
  310. sourcePage
  311. sourceObject
  312. sourceBook
  313. theTextEditor
  314. theObject
  315. SizeForVideo
  316. show video here
  317. show video here
  318. buttonUp
  319. hotword
  320. show video here
  321. QRestoreVideoButton
  322. FullScreenVideo
  323. gVideoFullScreen
  324. CloseVideo
  325. close theVideo
  326. tbkMCI
  327. PauseVideo
  328. pause theVideo wait
  329. tbkMCI
  330. OpenVideo
  331. close stoogeVideo
  332. tbkMCI
  333. child
  334. alias theVideo parent
  335. style child wait
  336. tbkMCIchk
  337. popup
  338. alias theVideo style popup wait
  339. tbkMCIchk
  340. overlapped
  341. alias theVideo style overlapped wait
  342. tbkMCIchk
  343. gVideoFile
  344. gVideoStyle
  345. SizeWindow
  346. show video here
  347. ScreenFromPage
  348. show video here
  349. show video here
  350. 0bringToFront
  351. status theVideo window handle
  352. tbkMCIchk
  353. MoveWindow
  354. theVideoWindow
  355. theVideoPosition
  356. gVideoSize
  357. PlayVideo
  358. play theVideo from
  359. tbkMCIchk
  360. play theVideo from
  361. tbkMCIchk
  362. gVideoFromFrame
  363. gVideoToFrame
  364. HideVideo
  365. window theVideo state hide wait
  366. tbkMCI
  367. ShowVideo
  368. window theVideo state show wait
  369. tbkMCI
  370. Audio
  371. set theVideo audio all on
  372. tbkMCIchk
  373. set theVideo audio all off
  374. tbkMCIchk
  375. gVideoAudio
  376. VideoFrame
  377. status theVideo position
  378. tbkMCI
  379. FullScreenVideo
  380. PauseVideo
  381. HideVideo
  382. show video here
  383. show video here
  384. theOriginalPosition
  385. show video here
  386. status theVideo window handle
  387. tbkMCIchk
  388. MoveWindow
  389. show video here
  390. 0bringToFront
  391. Audio
  392. PlayVideo
  393. theVideoWindow
  394. gVideoFromFrame
  395. gVideoToFrame
  396. gVideoFullScreen
  397. gVideoAudio
  398. RestoreVideoButton
  399. PauseVideo
  400. HideVideo
  401. show video here
  402. 0bringToFront
  403. show video here
  404. show video here
  405. theOriginalPosition
  406. SizeWindow
  407. Audio
  408. PlayVideo
  409. gVideoFromFrame
  410. gVideoToFrame
  411. gVideoFullScreen
  412. gVideoAudio
  413. ShowVideoButton
  414. child
  415. CloseVideo
  416. OpenVideo
  417. SizeWindow
  418. show video here
  419. PlayVideo
  420. Audio
  421. gVideoStyle
  422. gVideoSize
  423. gVideoAudio
  424. gVideoFullScreen
  425. TextFields
  426. What is the text file name?
  427. c:\toolbook\mmeld\txt\
  428. Do you want blue (1) or yellow (2) text?
  429. GetText
  430. PlaceField
  431. fCount
  432. theText
  433. theColor
  434. theTextFile
  435. theOriginalSnap
  436. GetText
  437. Error:
  438. end of file
  439. theText
  440. theFile
  441. PlaceField
  442. Arial
  443. 240,25.125,100
  444. 60,50,100
  445. gAnInch
  446. theTextColor
  447. theTextLine
  448. theFieldNumber
  449. ListPages
  450. c:\pagelist.txt
  451. ********************
  452. Book:
  453. M d, y
  454. Date:
  455. ********************
  456.      
  457. ListObjects
  458. theLastBackground
  459. theFile
  460. ListObjects
  461.      * Title: 
  462. title
  463. videoFile
  464.      * Video: 
  465. videoFile
  466.      * Frames:
  467. startStop
  468.           
  469. theObjects
  470. thePageNumber
  471. theFile
  472. PlayStooges
  473. close waveFile
  474. tbkMCI
  475. PauseVideo
  476. close stoogeVideo
  477. tbkMCI
  478. c:\plv\stooge1.avs
  479. c:\plv\stooge2.avs
  480. c:\plv\stooge3.avs
  481. c:\plv\stooge4.avs
  482. alias stoogeVideo style popup wait
  483. tbkMCIchk
  484. status stoogeVideo window handle
  485. tbkMCIchk
  486. MoveWindow
  487. play stoogeVideo from 1 wait
  488. tbkMCIchk
  489. close stoogeVideo wait
  490. tbkMCI
  491. theVideoWindow
  492. theVideoFile
  493. stoogeNumber
  494.